package com.zb.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @Author WEN
 * @Date 2023/8/2 0002
 **/
@Data
@ApiModel("规格内容")
public class GoodsSpecContentVo {
    @ApiModelProperty(value = "内容ID, 新增时不必传，修改时必传")
    private Long id;

    @NotBlank(message = "规格内容不能为空")
    @Length(max = 20, message = "规格内容字符长度限制在20以内")
    @ApiModelProperty(value = "规格内容", required = true, example = "")
    private String val;



}
